package com.googlecode.continuity.core.client.hibernatesupport;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.googlecode.continuity.core.client.*;

/**
 * CoreInit initializes all domain classes under Hibernate control so that the necessary generator classes are
 * constructed upon compilation.
 *
 * @author Peter Schmitt <aragos@aragos.de>
 */
public class CoreInit implements EntryPoint {
  /**
   * Calls generator for controlled classes.
   */
  public void onModuleLoad() {
    GWT.create(GrantedAuthority.class);
    GWT.create(Group.class);
    GWT.create(Message.class);
    GWT.create(Reply.class);
    GWT.create(User.class);
  }
}

